/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jp.co.irep.juten.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author toan_nguyen
 */
@Entity
@Table(name = "claim_research_tbl")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ClaimResearchTbl.findAll", query = "SELECT c FROM ClaimResearchTbl c"),
    @NamedQuery(name = "ClaimResearchTbl.findByManageNo", query = "SELECT c FROM ClaimResearchTbl c WHERE c.manageNo = :manageNo"),
    @NamedQuery(name = "ClaimResearchTbl.findByTitle", query = "SELECT c FROM ClaimResearchTbl c WHERE c.title = :title"),
    @NamedQuery(name = "ClaimResearchTbl.findByFormValue", query = "SELECT c FROM ClaimResearchTbl c WHERE c.formValue = :formValue"),
    @NamedQuery(name = "ClaimResearchTbl.findByArid", query = "SELECT c FROM ClaimResearchTbl c WHERE c.arid = :arid"),
    @NamedQuery(name = "ClaimResearchTbl.findById", query = "SELECT c FROM ClaimResearchTbl c WHERE c.id = :id")})
public class ClaimResearchTbl implements Serializable {
    private static final long serialVersionUID = 1L;
    @Basic(optional = false)
    @NotNull
    @Column(name = "manage_no")
    private int manageNo;
    @Basic(optional = false)
    @NotNull
    @Column(name = "title")
    private short title;
    @Size(max = 2147483647)
    @Column(name = "form_value")
    private String formValue;
    @Column(name = "arid")
    private Short arid;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;

    public ClaimResearchTbl() {
    }

    public ClaimResearchTbl(Long id) {
        this.id = id;
    }

    public ClaimResearchTbl(Long id, int manageNo, short title) {
        this.id = id;
        this.manageNo = manageNo;
        this.title = title;
    }

    public int getManageNo() {
        return manageNo;
    }

    public void setManageNo(int manageNo) {
        this.manageNo = manageNo;
    }

    public short getTitle() {
        return title;
    }

    public void setTitle(short title) {
        this.title = title;
    }

    public String getFormValue() {
        return formValue;
    }

    public void setFormValue(String formValue) {
        this.formValue = formValue;
    }

    public Short getArid() {
        return arid;
    }

    public void setArid(Short arid) {
        this.arid = arid;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ClaimResearchTbl)) {
            return false;
        }
        ClaimResearchTbl other = (ClaimResearchTbl) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "jp.co.irep.tech.juten.jpa.entity.ClaimResearchTbl[ id=" + id + " ]";
    }
    
}
